<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>Elix DropdownList with custom value representation</title>

    <link rel="stylesheet" href="demos.css" />
    <script type="module" src="../define/Option.js"></script>
    <script type="module" src="./src/LabeledColorSwatch.js"></script>
    <script type="module" src="../define/DropdownList.js"></script>
  </head>

  <body role="main">
    <div class="demo padded">
      <label id="colorLabel">Pick a color:</label>
      <elix-dropdown-list
        id="colorDropdown"
        aria-labelledby="colorLabel colorDropdown"
        value="Red"
      >
        <elix-option aria-label="Black">
          <labeled-color-swatch>Black</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Blue">
          <labeled-color-swatch>Blue</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Green">
          <labeled-color-swatch>Green</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Orange">
          <labeled-color-swatch>Orange</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Purple">
          <labeled-color-swatch>Purple</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Red">
          <labeled-color-swatch>Red</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="White">
          <labeled-color-swatch>White</labeled-color-swatch>
        </elix-option>
        <elix-option aria-label="Yellow">
          <labeled-color-swatch>Yellow</labeled-color-swatch>
        </elix-option>
      </elix-dropdown-list>
    </div>
  </body>
</html>
